package me.firstapp.manage.point;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import me.firstapp.manage.common.BaseManage;

@Controller
@RequestMapping(value = "/pointRechargeCardManage")
public class PointRechargeCardManagePage extends BaseManage {

	@RequestMapping(value = "/pointRechargeCardList.html", method = RequestMethod.GET)
	public ModelAndView pointRechargeCardListView(HttpServletRequest request, HttpServletResponse response,
			ModelMap modelMap) {
		return new ModelAndView("point/pointRechargeCardList", modelMap);
	}

	@RequestMapping(value = "/addPointRechargeCard.html", method = RequestMethod.GET)
	public ModelAndView addPointRechargeCardView(HttpServletRequest request, HttpServletResponse response,
			ModelMap modelMap) {
		return new ModelAndView("point/pointRechargeCardAdd", modelMap);
	}

	@RequestMapping(value = "/startUserPointRechargeCard.html", method = RequestMethod.GET)
	public ModelAndView startUserPointRechargeCardView(String ids, HttpServletRequest request,
			HttpServletResponse response, ModelMap modelMap) {
		modelMap.put("ids", ids);
		return new ModelAndView("point/pointRechargeCardStartUse", modelMap);
	}
}
